<?php

// Define application environment
defined('APPLICATION_ENV') || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV'): 'production'));

// Define basepath
define('BASEPATH', dirname(__FILE__));

// Add include path
set_include_path(implode(PATH_SEPARATOR, array(BASEPATH . '/libraries', get_include_path())));

// Set autoloaders
require_once('Doctrine.php');
spl_autoload_register(array('Doctrine', 'autoload'));

require_once('Ingenii/Loader.php');
spl_autoload_register(array('Ingenii_Loader','autoload'));